.\" Copyright (C) 2010-2013 Shang-Rong Cai. All rights reserved.
.\" 
.\" Redistribution and use in source and binary forms, with or without
.\" modification, are permitted provided that the following conditions
.\" are met:
.\" 1. Redistributions of source code must retain the above copyright
.\"    notice, this list of conditions and the following disclaimer.
.\" 2. Redistributions in binary form must reproduce the above copyright
.\"    notice, this list of conditions and the following disclaimer in the
.\"    documentation and/or other materials provided with the distribution.
.\" 
.\" THIS SOFTWARE IS PROVIDED BY AUTHOR AND CONTRIBUTORS ``AS IS'' AND
.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
.\" ARE DISCLAIMED.  IN NO EVENT SHALL AUTHOR OR CONTRIBUTORS BE LIABLE
.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\" 
.\" $ BASE: bscerr.3    Rev. 1.2.0    2013-03-06T00:14+08:00 $
.TH BSCERR 3 2013-03-06 "BASE 1.2" "Base Architecture Source Equipment"
.SH NAME
\fBbscerr\fP -  Error code definitions
.SH SYNOPSIS
\fB#include <bscerr.h>\fP

.SH DESCRIPTION
This header file provides a common error code returns using as the base for 
software development.

.SH RETURN VALUES
.TP
0 \fBERRNO_UNDEFINED\fP
Default value if no error is defined
.LP
The following error codes are defined similar value to \fBStandard C Library\fP 
error number.
.TP
1 \fBERRNO_OPERATION_NOT_PERMITTED\fP
Operation not permitted
.TP
2 \fBERRNO_NO_SUCH_FILE_OR_DIRECTORY\fP
No such file or directory
.TP
3 \fBERRNO_NO_SUCH_PROCESS\fP
No such process
.TP
5 \fBERRNO_INPUT_OUTPUT_ERROR\fP
Input/output error
.TP
12 \fBERRNO_CANNOT_ALLOCATE_MEMORY\fP
Cannot allocate memory
.TP
13 \fBERRNO_PERMISSION_DENIED\fP
Permission denied
.TP
14 \fBERRNO_BAD_ADDRESS\fP
Bad address
.TP
17 \fBERRNO_FILE_EXISTS\fP
File exists
.TP
20 \fBERRNO_NOT_A_DIRECTORY\fP
Not a directory
.TP
21 \fBERRNO_IS_A_DIRECTORY\fP
Is a directory
.TP
27 \fBERRNO_FILE_TOO_LARGE\fP
File too large
.TP
28 \fBERRNO_NO_SPACE_LEFT_ON_DEVICE\fP
No space left on device
.TP
30 \fBERRNO_READ_ONLY_FILE_SYSTEM\fP
Read-only file system
.TP
63 \fBERRNO_FILE_NAME_TOO_LONG\fP
File name too long
.TP
66 \fBERRNO_DIRECTORY_NOT_EMPTY\fP
Directory not empty
.TP
75 \fBERRNO_PROGRAM_VERSION_WRONG\fP
Program version wrong
.LP
The following error codes are defined in \fBBASE (Base Architecture Source 
Equipment)\fP.
.TP
256 \fBERRNO_UNDEFINED_ERROR\fP
Unknown error occurred
.TP
257 \fBERRNO_INCOMPATIBLE\fP
Data are incompatible
.TP
258 \fBERRNO_POSITION_OCCUPIED\fP
Module has been used
.TP
259 \fBERRNO_SUPPORT_NONE\fP
Methods or data do not support
.TP
260 \fBERRNO_SUPPORT_NOT_YET\fP
Methods or data waiting support
.TP
261 \fBERRNO_THIRD_PARTY_NOT_SUPPORT\fP
Third party not support
.TP
262 \fBERRNO_DL_MODULE_FAIL_LOAD\fP
Add-ins module loading failed
.TP
263 \fBERRNO_DL_MODULE_FAIL_SYMB\fP
Add-ins module symbol failed
.TP
264 \fBERRNO_DL_MODULE_FAIL_FUNC\fP
Add-ins module function failed
.TP
265 \fBERRNO_MODULES_DUMP_SIZE\fP
Dump modules with incompatible size
.TP
266 \fBERRNO_MODULES_DUMP_TYPE\fP
Dump modules with incompatible type
.TP
267 \fBERRNO_MODULES_DUMP_FAIL\fP
Dump modules failed
.TP
268 \fBERRNO_MODULES_SPREAD_SIZE\fP
Spread data to incompatible modules size
.TP
269 \fBERRNO_MODULES_SPREAD_TYPE\fP
Spread data to incompatible modules type
.TP
270 \fBERRNO_MODULES_SPREAD_FAIL\fP
Spread data to modules failed
.TP
271 \fBERRNO_MODULES_GATHER_SIZE\fP
Gather data to incompatible modules size
.TP
272 \fBERRNO_MODULES_GATHER_TYPE\fP
Gather data to incompatible modules type
.TP
273 \fBERRNO_MODULES_GATHER_FAIL\fP
Gather data to modules failed
.TP
274 \fBERRNO_MODULES_INITIALIZE_SIZE\fP
Initialize a group of modules with different size
.TP
275 \fBERRNO_MODULES_INITIALIZE_TYPE\fP
Initialize a group of modules with different type
.TP
276 \fBERRNO_MODULES_INITIALIZE_FAIL\fP
Initialize a group of modules failed
.TP
277 \fBERRNO_OUT_OF_RANGE\fP
Value out of valid range
.TP
278 \fBERRNO_OUT_OF_RANGE_MPU\fP
Metaphysical processing unit (MPU) rank out of valid range
.TP
279 \fBERRNO_OUT_OF_RANGE_PUZ\fP
Number of metaphysical processing units (PUZ) out of valid range
.TP
280 \fBERRNO_OUT_OF_RANGE_SIZE\fP
Size out of valid range
.TP
281 \fBERRNO_OUT_OF_RANGE_POSITION\fP
Position in array out of range
.TP
282 \fBERRNO_OUT_OF_RANGE_DIMENSION\fP
Spatial dimension out of range
.TP
283 \fBERRNO_OUT_OF_RANGE_PART_ID\fP
Part ID out of range.
.TP
284 \fBERRNO_OUT_OF_RANGE_SHAPE_ID\fP
Shape function ID out of range
.TP
285 \fBERRNO_UNKNOWN_TYPE\fP
Unknown type identifier
.TP
286 \fBERRNO_UNKNOWN_TYPE_CELL\fP
Unknown cell type identifier
.TP
287 \fBERRNO_UNKNOWN_TYPE_FILE\fP
Unknown file type identifier
.TP
288 \fBERRNO_UNKNOWN_STYLE\fP
Unknown style
.TP
289 \fBERRNO_UNKNOWN_STYLE_NUMBERING\fP
Unknown numbering style
.TP
290 \fBERRNO_UNKNOWN_STYLE_PARTIAL\fP
Unknown partial derivative style

.SH SEE ALSO
errno(2)

